{extend name='../base/index/main'}

{block name='main'}
<div class="layui-box">

    <form class="layui-form layui-form-pane" action="{:url('Menu/edit_action')}" method="post">
        <fieldset class="layui-elem-field">
            <legend>编辑菜单</legend>

            <div class="layui-field-box">

                {:CMaker('relation')->label('所属分类')->helpinfo('')->table('menu')->field('id,pid,name')->showtype('treeSelect')->choose($vo['pid'])->name('pid')->layVerify('')->render()}
{:CMaker('text')->label('菜单名称')->helpinfo('')->placeholder('')->value($vo['name'])->name('name')->layVerify('')->render()}
{:CMaker('text')->label('模型名称')->helpinfo('')->placeholder('module')->value($vo['module'])->name('module')->layVerify('required')->render()}
{:CMaker('text')->label('控制器名称')->helpinfo('')->placeholder('controller')->value($vo['controller'])->name('controller')->layVerify('required')->render()}
{:CMaker('text')->label('方法名称')->helpinfo('')->placeholder('action')->value($vo['action'])->name('action')->layVerify('required')->render()}
{:CMaker('text')->label('自定义参数')->helpinfo('格式为：a=b&f=h ')->placeholder('格式为：a=b&f=h ')->value($vo['params'])->name('params')->layVerify('')->render()}
{:CMaker('text')->label('菜单图标')->helpinfo('')->placeholder('icon')->value($vo['icon'])->name('icon')->layVerify('')->render()}
{:CMaker('switchs')->label('是否显示')->helpinfo('')->text('是|否')->onvalue('1')->offvalue('0')->open($vo['isshow'])->name('isshow')->layVerify('')->render()}
{:CMaker('hidden')->name('id')->value($vo['id'])->render()}

            </div>


        </fieldset>


        <div class="layui-form-item">
            <div class="layui-input-inline ">
                <button class="layui-btn"  lay-submit data-call-back="reload_table" >提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>

    </form>
</div>


<script type="text/javascript" src="__PLUGIN_PATH__/layui/layui.js"></script>
<script type="text/javascript" src="__PLUGIN_PATH__/lay-extend-module/config.js"></script>

{:CMakerJs("all")}

{/block}
